<template>
  <div class="recommend">
      <div class="rItem" v-for="(item,index) in recommends" :key="index">
        <a :href="item.link">
          <img :src="item.image" alt="">
          <div>{{item.title}}</div>
        </a>
      </div>
  </div>
</template>

<script>
  export default {
    props:{
      recommends:{
        type:Array,
        default(){
          return []
        }
      }
    }
  }
</script>

<style scoped>
  .recommend{
    display:flex;
    justify-content:space-around;
    align-items:center;
    text-align:center;
    font-size:12px;
    padding:15px 0 20px 0;
    border-bottom:8px solid #eee;
  }
  .rItem{
    flex:1;

  }
  .rItem img{
    width:80%;
    vertical-align:center;
  }

</style>
